package sn.ugb.po.ejb.sessions.facades.etudiant.impl;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import sn.ugb.po.ejb.sessions.facades.etudiant.impl.Personne;


@Entity
@Table(name = "Batiment")
@Inheritance (strategy=InheritanceType.SINGLE_TABLE)

public class Batiment {
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	
	public Integer getId() {
		return id;
	}

	
	public Batiment() {
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	
	@Column(name = "NOM BATIMENT")
	private String nomBatiment;

	
	

	
	public String getnomBatiment() {
		return nomBatiment;
	}

	public void setnomBatiment(String nomBatiment) {
		this.nomBatiment = nomBatiment;
	}

	

	
	



	public String toString() {
		StringBuffer buffer = new StringBuffer(Personne.class.getSimpleName());
		buffer.append(" [");
		buffer.append(" nomBatiment : " + nomBatiment);
		
		buffer.append("]");
		return buffer.toString();
	}
}